package com.custom.base.base

import com.custom.base.R
import com.custom.base.type.AnimationActivityType


abstract class AnimationActivity : AutoLayoutActivity(){
    open fun startAnimation(
        animationStartType: AnimationActivityType = AnimationActivityType.RIGHT,
        animationEndType:Int = R.anim.animo_no
    ){
        when (animationStartType) {
            AnimationActivityType.TOP -> {
                overridePendingTransition(R.anim.dialog_enter_sliding_from_top, R.anim.animo_no)
            }
            AnimationActivityType.RIGHT -> {
                overridePendingTransition(R.anim.dialog_enter_sliding_from_right, R.anim.animo_no)
            }
            AnimationActivityType.BOTTOM -> {
                overridePendingTransition(R.anim.dialog_enter_sliding_from_bottom, R.anim.animo_no)
            }
            AnimationActivityType.LEFT -> {
                overridePendingTransition(R.anim.dialog_enter_sliding_from_leift, R.anim.animo_no)
            }else -> overridePendingTransition(R.anim.dialog_enter_sliding_from_top, R.anim.animo_no)
        }
    }
}